package com.sanpu.kxe.common.enums;

/**
 * Description：应用option
 * Created by 薛勇军 on 2018/8/3.
 */

public class Option {
    private int icon;
    private Type type;
    private String title;
    private CharSequence des;

    public Option(int icon, String title) {
        this.icon = icon;
        this.title = title;
    }

    public Option(int icon, String title, CharSequence des) {
        this.icon = icon;
        this.title = title;
        this.des = des;
    }

    public Option(Type type, int icon, String title) {
        this.type = type;
        this.icon = icon;
        this.title = title;
    }

    public Type getType() {
        return type;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public CharSequence getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }


    public enum Type {
        BASE(1, "基本应用"),
        THIRDPARTY(2, "第三方提供服务"),
        MEMBER(3, "会员应用");

        private int id;
        private String des;

        Type(int id, String des) {
            this.id = id;
            this.des = des;
        }

        public int getId() {
            return id;
        }

        public String getDes() {
            return des;
        }
    }

}
